<form method="post" class="form-x dux-form form-auto" id="form" action="{:U()}">
    <div class="panel dux-box  active">
        <div class="panel-head">
            <strong>{$name}服务类型</strong>
        </div>
        <div class="panel-body">
            <div class="form-group">
                <div class="label">
                    <label>服务类型名称</label>
                </div>
                <div class="field">
                    <input type="text" class="input" id="service_name" name="service_name" size="60" datatype="s" value="{$info['service_name']}">
                    <div class="input-note">当前服务类型的名称</div>
                </div>
            </div>

			<div class="form-group">
                <div class="label">
                    <label>是否服务</label>
                </div>
                <div class="field">
					<div class="button-group button-group-small radio">
						
                        <if condition="$info['service_status'] eq '' OR $info['service_status'] eq '1'">
                            <label class="button active">
						     <input type="radio" value="1" name="service_status" checked="checked"> 
                        <else/> 
                            <label class="button">
                            <input type="radio" value="1" name="service_status"> 
                        </if>                          
						    <span class="icon icon-check"></span> 是
				            </label>
					
                        <if condition="$info['service_status'] eq '2'">
                            <label class="button active">
						    <input type="radio" value="2" checked="checked" name="service_status">
                        <else/>
                            <label class="button">
                            <input type="radio" value="2" name="service_status"> 
                        </if>
						    <span class="icon icon-times"></span> 否
					        </label>
					</div>
                    <div class="input-note">当前服务类型状态</div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>服务类型排序</label>
                </div>
                <div class="field">
                    <input type="text" class="input" id="service_sort" name="service_sort" size="60" datatype="n" value="{$info['service_sort']}">
                    <div class="input-note">服务类型排序(限数字)</div>
                </div>
            </div>
        </div>
        <div class="panel-foot">
            <div class="form-button">
                <div id="tips"></div>
                <input type="hidden" name="service_id" type="hidden" value="{$info['service_id']}">
                <button class="button bg-main" type="submit">保存</button>
                <button class="button bg" type="reset">重置</button>
            </div>
        </div>
    </div>
</form>
<script>
    Do.ready('base', function () {
        $('#form').duxFormPage();
    });
</script>